//
//  WordsView.h
//  LineByLine
//
//  Created by 병철 김 on 11. 10. 25..
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WordsFinishView.h"


@protocol WordsViewDelegate <NSObject>
- (NSTimeInterval) didFinishSentence:(id) sentence;
@end

@interface WordsView : UIView {
    id sentence;
    id<WordsViewDelegate> viewDelegate;
    NSMutableArray *wordViews;
    NSArray *words;
    
    UITextView *resultView;
    WordsFinishView *_wordsFinishView;
    int currentWordPos;
    int incorrectCount;
}

@property (retain, nonatomic) id sentence;
@property (assign, nonatomic) id<WordsViewDelegate> viewDelegate;

- (void) configView;
@end
